package com.team11.server.controller.admin;

import com.team11.server.pojo.CInformation;
import com.team11.server.service.admin.Admin_SelAll_SInC_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_SelAllStInC_Controller {
    @Autowired
    private Admin_SelAll_SInC_Service admin_selAll_sInC_service;
    @ApiOperation("班级详情接口(根据班级id获取班级所有学生)")
    @PostMapping("/SelAllStInC")
    public List<CInformation> SelAll_sINC(Integer cId){
        return admin_selAll_sInC_service.SelAllS_In_C(cId);
    }
}
